package com.lrw.springboot_mybatis.backend.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lrw.springboot_mybatis.backend.entity.User;
import com.lrw.springboot_mybatis.backend.mapper.UserMapper;
import com.lrw.springboot_mybatis.backend.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2020-05-07
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    UserMapper userMapper;

    public IPage<User> selectUserPage(Page<User> page, Integer age) {

        return userMapper.selectPageVo(page, age);
    }

}
